import React, { Suspense } from 'react'
import { useRoutes } from 'react-router-dom'
import { stastic_routes } from './routes'

const RouterView = () => useRoutes(stastic_routes)

const Router = () => {
  return (
    <Suspense fallback="路由加载中...">
      <RouterView></RouterView>
    </Suspense>  
  )
}

export default Router